
<div class="layui-form-item">
  <label class="layui-form-label">标题<span></span></label>
  <div class="layui-input-inline">
	<input type="text"  placeholder="" name="title" id="info_title" class="layui-input modelform_title" value="{$r?$r['title']:''}" style="" autocomplete="off">
  </div>
</div>	
<div class="layui-form-item">
  <label class="layui-form-label">缩略图<span></span></label>
  <div class="layui-input-inline file-upload">
		<input type="text" name="thumb" id="info_thumb" value="{$r?$r['thumb']:''}" autocomplete="off" class="layui-input"/>
		<div class="layui-btn-group">
			<button type="button" class="layui-btn" onclick="previewImg('info_thumb')"><i class="layui-icon">&#xe64a;</i>预览</button>
			<button type="button" class="layui-btn fastupimg" data-input_id="info_thumb" data-listtype="img" id="info_thumb_Picker"><i class="layui-icon">&#xe608;</i>上传</button>
			<button type="button" class="layui-btn" onClick="selectfile('info_thumb','','img')"><i class="layui-icon">&#xe67c;</i>浏览</button>
		</div>
  </div>
</div>	
<div class="layui-form-item">
  <label class="layui-form-label">时间<span></span></label>
  <div class="layui-input-inline">
	<input type="text"  placeholder="" autocomplete="off" name="newstime" id="info_newstime" value="<?=$r?date("Y-m-d H:i:s",$r['newstime']):date("Y-m-d H:i:s")?>" style=""  data-format="yyyy-MM-dd HH:mm:ss" class="layui-input form-date">
  </div>
</div>
<div class="layui-form-item">
  <label class="layui-form-label">图片标题<span></span></label>
  <div class="layui-input-inline">
	<input type="text"  placeholder="" name="imgtitle" id="info_imgtitle" class="layui-input modelform_imgtitle" value="{$r?$r['imgtitle']:''}" style="" autocomplete="off">
  </div>
</div>	
<div class="layui-form-item">
	<label class="layui-form-label">月份描述<span></span></label>
    <div class="layui-input-inline morevalue">
		<script>
			var month_form_js='<tr><td class="morevalue_input"><input class="layui-input" placeholder="" value="" name="month_0[]"></td><td class="morevalue_input"><input class="layui-input" placeholder="" value="" name="month_1[]"></td><td class="morevalue_button"><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_add(this,month_form_js)"><i class="layui-icon">&#xe654;</i></a><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_del(this)"><i class="layui-icon">&#xe640;</i></a></td></tr>';
		</script>
		<table class="layui-table" style="border-right:1px solid #ccc">
			<thead><tr><th style="width:20%">时间<input type="hidden" name="month_morevalue_len[]" placeholder="我只是用于在保存信息的时候用来判断一共有几个morevalue字段的"></th><th style="width:20%">描述<input type="hidden" name="month_morevalue_len[]" placeholder="我只是用于在保存信息的时候用来判断一共有几个morevalue字段的"></th><th style="width:10%">操作</th></tr></thead>
			<tbody>
				<?php
				if($r['month']){
					$morevalue=$r['month'];
					$morevalue_arr=explode("{{RsSplit}}",$morevalue);
					foreach($morevalue_arr as $k=> $v){
						if(!$v){break;}
						$vs=explode("{{FieldSplit}}",$v);
				?>				
				<tr><td class="morevalue_input"><input class="layui-input" placeholder="" value="<?=$r?$vs['0']:''?>" name="month_0[]"></td><td class="morevalue_input"><input class="layui-input" placeholder="" value="<?=$r?$vs['1']:''?>" name="month_1[]"></td><td class="morevalue_button"><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_add(this,month_form_js)"><i class="layui-icon">&#xe654;</i></a><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_del(this)"><i class="layui-icon">&#xe640;</i></a></td></tr>
				<?php
					}                     
				}else{
				?>
				<tr><td class="morevalue_input"><input class="layui-input" placeholder="" value="<?=$r?$vs['0']:''?>" name="month_0[]"></td><td class="morevalue_input"><input class="layui-input" placeholder="" value="<?=$r?$vs['1']:''?>" name="month_1[]"></td><td class="morevalue_button"><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_add(this,month_form_js)"><i class="layui-icon">&#xe654;</i></a><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_del(this)"><i class="layui-icon">&#xe640;</i></a></td></tr>
				<?php
				}
				?>									
			</tbody>
		</table>
    </div>
</div>